<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1" %>
    <%@ page import = "model.Movie" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<% Movie[] movieArray = (Movie[])request.getSession().getAttribute("movieArray");
int i = movieArray.length;
if(i==0)
	out.print("sorry, there are no records that match your criteria try again");
else		
{%>
<h2>below are the details</h2>
	<table>
  <tr>
    <td>Available Copies</td>
    <td>Movie Category</td>
    <td>Movie Name</td>
    <td>Production Banner</td>
    <td>Release Date</td>
    <td>Rent Amount</td>
    <td>Total Copies</td>
  </tr>
  <%for (int j = 0 ; j <movieArray.length;j++){ %>
  <tr>
    <td><%=movieArray[j].getAvailableCopies() %></td>
    <td><%=movieArray[j].getMovieCategory() %></td>
    <td><%=movieArray[j].getMovieName() %></td>
    <td><%=movieArray[j].getProdBanner() %></td>
    <td><%=movieArray[j].getReleaseDate() %></td>
    <td><%=movieArray[j].getRentAmount() %></td>
    <td><%=movieArray[j].getTotalCopies() %></td>
  </tr>
</table>

<% }
  }%>
</body>
</html>